// 全局颜色
class Colors {

    constructor(actions) {
    }
    getElement() {
        let arr = [];
        let r = Math.ceil(Math.random()*6)
        for (let i in this.actions) {
            // let a = `<p>${this.actions[i].action.replace(/\$N/, '[老贼]--').replace(/\$n/g,`<span class="${this.color[r]}">张三</span>`).replace(/\$l/, '眼睛')}</p>`;
            arr.push(`<p>${this.actions[i].action}</p>`);
        }
        return arr;
    }
    
}
module.exports  = Colors;